package com.lch.netty.bio.tomcat.servlet;

import com.lch.netty.bio.tomcat.http.Request;
import com.lch.netty.bio.tomcat.http.Response;
import com.lch.netty.bio.tomcat.http.Servlet;

import java.io.IOException;

/**
 * @author: liuchenhui
 * @create: 2019-10-14 11:44
 **/
public class FirstServlet extends Servlet {

    @Override
    protected void doGet(Request request, Response response) throws IOException {
        this.doPost(request, response);
    }

    @Override
    protected void doPost(Request request, Response response) throws IOException {
        response.write("I'm FirstServlet");
    }
}
